package com.bai.Service;

import com.bai.Pojo.Admin;
import com.bai.dto.PageLimitDto;
import com.bai.dto.PublicResponseBody;

public interface AdminService {
    //登录
    /*Admin LoginByUser(String username, String password);*/
    //查询所有管理员
    PageLimitDto queryAllAdmin(Integer offset,Integer limit);
    //删--根据Id
    PublicResponseBody deleteAdmin(Integer  id);
    //添加
    PublicResponseBody addAdmin(Admin admin);
    //修改
    PublicResponseBody editAdmin(Admin admin);
    //根据id获取Admin详情
    PublicResponseBody getAdmin(int id);
}
